<?php
require_once 'common.php';
$common = new Common();

if ($_SERVER['REQUEST_METHOD']=="POST") {
	call_user_func(array($common, 'addUser'));
}
?>

<!DOCTYPE html>

<html>
	<head>
		<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
		<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

		<!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
		<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">

		<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
		<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
	</head>
	<body>
		<div class="container">
			<form method="post">
			  <div class="form-group">
				<label for="exampleInputEmail1">账号</label>
				<input type="text" class="form-control" name="account" id="exampleInputEmail1" placeholder="account">
			  </div>
			  <div class="form-group">
				<label for="exampleInputEmail1">昵称</label>
				<input type="text" class="form-control" name="nickname" id="exampleInputEmail1" placeholder="nickname">
			  </div>
			  <div class="form-group">
				<label for="exampleInputEmail1">邮箱</label>
				<input type="email" class="form-control" name="email" id="exampleInputEmail1" placeholder="Email">
			  </div>
			  <div class="form-group">
				<label for="exampleInputPassword1">密码</label>
				<input type="password" class="form-control" name="password" id="exampleInputPassword1" placeholder="Password">
			  </div>
			  <button type="submit" class="btn btn-default">提交</button>
			</form>
		</div>
	</body>
</html>